<%= render :partial=>"filter_tab" %>

<table class="lister">
	<thead>
		<tr>
		<td width="5%">Rank</td>
		<td width="20%">Name</td>
		<td width="20%">Current Streak</td>
		<td width="55%">Next Bet</td>
		</tr>
	</thead>
<tbody>
	<% @users.each_with_index do |user,index| %>
	<% rank = index + 1 %>
	<%= "<tr>" if (index % 1).zero? %>
		<td class="boldfont" style="font-size:17px;" height=115px width="5%"> <%= rank %> </td>
		<td>
			<p><%= fb_profile_pic user %></p>
			<p><%= fb_name user %></p>
		</td>
		<td>
			<p><%= winstreak_count user.winstreak %></p>
		</td>
		<td>
			<p>Current Bet</p>
			<p>Challenge User</p>
		</td>
		<%= "</tr>" if (rank % 1).zero? %>
	<% end %>

	<% unless (@users.size % 1).zero? %>
		<td colspan="3" width="50%"></td></tr>
	<% end %>

</tbody>
</table>


<%= render :partial=>"filter" %>
<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>

<%= render :partial=>"invite_leaderboards" %>